package com.commons.sql;

import java.util.HashMap;
import java.util.List;
import java.util.Map;




public class List2Map {
	public static Map<String, Object> execute(List<SearchCondition> list)
	{
		Map<String, Object> map=new HashMap<String, Object>();
		
		if(list==null || list.size()==0)return map;
		
		for(SearchCondition condition:list)
		{
			map.put(condition.getAlias(), condition.getValue());
		}
		return map;
	}
}
